#!/usr/bin/python3

import lcd1602ForI2C as Lcd
import time

if __name__ == "__main__":
    Lcd.init()
    try:
        while True:
            Lcd.write(0, 0, time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())))
            time.sleep(1)
    except KeyboardInterrupt:
        Lcd.clear()
